// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FIN_RECEIVED_DETAIL
// * CreateDate    : 2012/4/10 10:20:51
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/10 10:20:51
// * LastChanger   : 2012/4/10 10:20:51
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class FinReceivedDetailTable : TableInfo
    {
		public const string C_TableName = "FIN_RECEIVED_DETAIL";
		
		public const string C_RECEIVED_DETAIL_ID = "RECEIVED_DETAIL_ID";
		public const string C_ACCOUNTS_CODE = "ACCOUNTS_CODE";
		public const string C_ORDER_TYPE = "ORDER_TYPE";
		public const string C_RELATED_ORDER_ID = "RELATED_ORDER_ID";
		public const string C_CUSTOMER_ID = "CUSTOMER_ID";
		public const string C_RECEIVED_PERSON = "RECEIVED_PERSON";
		public const string C_RECEIVED_DATE = "RECEIVED_DATE";
		public const string C_RECEIVED_AMOUNT = "RECEIVED_AMOUNT";
		public const string C_CURRENCY = "CURRENCY";
		public const string C_RECEIVED_TYPE = "RECEIVED_TYPE";
		public const string C_INVOICE_NO = "INVOICE_NO";
		public const string C_STATUS = "STATUS";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_APPROVED_BY = "APPROVED_BY";
		public const string C_REMARK = "REMARK";
		public const string C_BANK_ACCOUNT = "BANK_ACCOUNT";
		public const string C_PAY_TYPE = "PAY_TYPE";
		
		public FinReceivedDetailTable()
        {
            _tableName = "FIN_RECEIVED_DETAIL";
        }
		
		protected static FinReceivedDetailTable _current;
        public static FinReceivedDetailTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new FinReceivedDetailTable();

            _current.Add(C_RECEIVED_DETAIL_ID, new ColumnInfo(C_RECEIVED_DETAIL_ID,"ReceivedDetailId", true, typeof(string)));
            _current.Add(C_ACCOUNTS_CODE, new ColumnInfo(C_ACCOUNTS_CODE,"AccountsCode", false, typeof(string)));
            _current.Add(C_ORDER_TYPE, new ColumnInfo(C_ORDER_TYPE,"OrderType", false, typeof(string)));
            _current.Add(C_RELATED_ORDER_ID, new ColumnInfo(C_RELATED_ORDER_ID,"RelatedOrderId", false, typeof(string)));
            _current.Add(C_CUSTOMER_ID, new ColumnInfo(C_CUSTOMER_ID,"CustomerId", false, typeof(string)));
            _current.Add(C_RECEIVED_PERSON, new ColumnInfo(C_RECEIVED_PERSON,"ReceivedPerson", false, typeof(string)));
            _current.Add(C_RECEIVED_DATE, new ColumnInfo(C_RECEIVED_DATE,"ReceivedDate", false, typeof(DateTime)));
            _current.Add(C_RECEIVED_AMOUNT, new ColumnInfo(C_RECEIVED_AMOUNT,"ReceivedAmount", false, typeof(decimal)));
            _current.Add(C_CURRENCY, new ColumnInfo(C_CURRENCY,"Currency", false, typeof(string)));
            _current.Add(C_RECEIVED_TYPE, new ColumnInfo(C_RECEIVED_TYPE,"ReceivedType", false, typeof(string)));
            _current.Add(C_INVOICE_NO, new ColumnInfo(C_INVOICE_NO,"InvoiceNo", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY,"ApprovedBy", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_BANK_ACCOUNT, new ColumnInfo(C_BANK_ACCOUNT,"BankAccount", false, typeof(string)));
            _current.Add(C_PAY_TYPE, new ColumnInfo(C_PAY_TYPE,"PayType", false, typeof(string)));
			
		}
		
		public ColumnInfo RECEIVED_DETAIL_ID
        {
            get { return this[C_RECEIVED_DETAIL_ID]; }
        }
		
		public ColumnInfo ACCOUNTS_CODE
        {
            get { return this[C_ACCOUNTS_CODE]; }
        }
		
		public ColumnInfo ORDER_TYPE
        {
            get { return this[C_ORDER_TYPE]; }
        }
		
		public ColumnInfo RELATED_ORDER_ID
        {
            get { return this[C_RELATED_ORDER_ID]; }
        }
		
		public ColumnInfo CUSTOMER_ID
        {
            get { return this[C_CUSTOMER_ID]; }
        }
		
		public ColumnInfo RECEIVED_PERSON
        {
            get { return this[C_RECEIVED_PERSON]; }
        }
		
		public ColumnInfo RECEIVED_DATE
        {
            get { return this[C_RECEIVED_DATE]; }
        }
		
		public ColumnInfo RECEIVED_AMOUNT
        {
            get { return this[C_RECEIVED_AMOUNT]; }
        }
		
		public ColumnInfo CURRENCY
        {
            get { return this[C_CURRENCY]; }
        }
		
		public ColumnInfo RECEIVED_TYPE
        {
            get { return this[C_RECEIVED_TYPE]; }
        }
		
		public ColumnInfo INVOICE_NO
        {
            get { return this[C_INVOICE_NO]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo BANK_ACCOUNT
        {
            get { return this[C_BANK_ACCOUNT]; }
        }
		
		public ColumnInfo PAY_TYPE
        {
            get { return this[C_PAY_TYPE]; }
        }
		
		
		
	}
}

